package org.wxd.springcloud.swagger.ctl.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ResponseVO<T> {
    @ApiModelProperty(value = "返回数据")
    private T data;
    @ApiModelProperty(value = "返回编码")
    private Integer code;
    @ApiModelProperty(value = "编码对应的消息")
    private String msg;

    public static <T> ResponseVO success(T t){
        return new ResponseVO<>(t,0,"success");
    }



}
